package io.renren.modules.app.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;


@Mapper
public interface RpExamMapper {
    @Select("SELECT number FROM user_examine_rp order by Creation_time desc LIMIT 1")
    Integer getRpRandomExamNumber();

    @Select("SELECT question_number FROM user_test_question_rp WHERE exam_number = #{examId}")
    List<Long> getRpQuestionNumbersForExam(Integer examId);
}